﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page trimDirectiveWhitespaces="true" %>
<%@page import="com.opensymphony.module.sitemesh.tapestry.Title"%>
<%@page import="com.sun.xml.txw2.Document"%>
<jsp:directive.include file="/WEB-INF/sitemesh-decorators/include.jsp"/>
<fmt:setBundle basename="bundles.application-resources"/>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String Title = "";
Title = request.getHeader(Title);
String referer = request.getHeader("Referer");
if(referer==null) referer="";

request.setAttribute("newsTypeLength", 1);
%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<style>
.stat-container {
	display: table;
	
	margin-bottom: 1.5em;
    margin-top: 1em;
	
	width: 100%;
}

.stat-holder {
	display: table-cell;
	
	width: 25%;
}

.stat span, .stat span a{
	display: block;
	margin-bottom: 0;
	font-size: 26px;
	font-weight: 600;
	font-style: normal;
	color: #4A515B;
    cursor:pointer;
}

.stat {
	padding: 2px 2px 10px;
	margin-right: 1em;
	
	font-size: 14px;
	font-style: italic;
	text-align: center;
	color: #888;
	
	background: #FFF;
	
	border: 1px solid #CCC;
	
	border-radius: 5px;
	
	text-shadow: 1px 1px 2px rgba(255,255,255,.5);
}


.stat-container .stat-holder:last-child .stat {
	margin: 0;
}

table>caption{
	background: #438EB9;
	color:#fff;
	line-height: 35px;
	font-size:16px;
}
</style>
</head>
<body>

<div class="page-content">
	<div class="page-header">
		<h1>&nbsp;
			<span class="hidden-xs hidden-sm fl">当前时间：<small><span id="nowtime">0000-00-00 00:00:00</span></small></span>
			<div class="pull-right font16 italic" style="margin-top:3px;"><a href="./Guide">帮助手册 <i class="icon icon-question"></i></a></div>
			<div class="pull-right font16 italic" style="margin-top:3px;margin-right:10px;"><a href="./About">平台介绍 <i class="icon icon-hdd"></i></a></div>
		</h1>
	</div>
	<div class="row">
		<div class="col-xs-12">
        <!-- 自定义内容区域 -->
            <div class="widget-box transparent">
				<div class="widget-header widget-header-flat">
					<h4 class="lighter">
						<i class="icon icon-flag red"></i>
						登陆用户：张三
					</h4>
				</div>
				<div class="widget-body">
					<div class="widget-main no-padding">
					</div><!-- /widget-main -->
				</div><!-- /widget-body -->
			</div>

            <div class="widget-box transparent">
				<div class="widget-header widget-header-flat">
					<h4 class="lighter">
						<i class="icon icon-bar-chart pink"></i>
						有效统计
					</h4>
				</div>
				<c:if test="${10>8 }">
				<div class="widget-body">
					<div class="widget-main no-padding">
                        <div class="stat-container">
				            <div class="stat-holder">						
					            <div class="stat">							
						            <span><a href="./M_ProductList">${countProduct }</a></span>							
						            有效产品
					            </div> <!-- /stat -->						
				            </div> <!-- /stat-holder -->
				            <div class="stat-holder">						
					            <div class="stat">							
						            <span><a href="./M_MemberList">${countMember }</a></span>							
						           有效会员
					            </div> <!-- /stat -->						
				            </div> <!-- /stat-holder -->
				            <div class="stat-holder">						
					            <div class="stat">							
						            <span><a href="./M_PendingOrder">${countPendingOrder }</a></span>							
						           待处订单
					            </div> <!-- /stat -->						
				            </div> <!-- /stat-holder -->
				            <div class="stat-holder">						
					            <div class="stat">							
						            <span><a href="./M_PendingFeedback">${countPendingFeedback }</a></span>							
						           待处留言
					            </div> <!-- /stat -->						
				            </div> <!-- /stat-holder -->
			            </div>
					</div><!-- /widget-main -->
				</div><!-- /widget-body -->
				<div class="widget-body">
					<div class="widget-main no-padding">
                        <div class="stat-container">
				            <div class="stat-holder">						
					            <div class="stat">							
						            <span><a href="./M_ScoreProductList">${countScoreProduct }</a></span>							
						            积分产品
					            </div> <!-- /stat -->						
				            </div> <!-- /stat-holder -->
				            <div class="stat-holder">						
					            <div class="stat">							
						            <span><a href="./M_FormcenterList">${countFormcenter }</a></span>							
						           报单中心
					            </div> <!-- /stat -->						
				            </div> <!-- /stat-holder -->
				            <div class="stat-holder">						
					            <div class="stat">							
						            <span><a href="./M_OrderList">${countOrder }</a></span>							
						           订单总数
					            </div> <!-- /stat -->						
				            </div> <!-- /stat-holder -->
				            <div class="stat-holder">						
					            <div class="stat">							
						            <span><a href="./M_FeedbackList">${countFeedback }</a></span>							
						           留言总数
					            </div> <!-- /stat -->						
				            </div> <!-- /stat-holder -->
			            </div>
					</div><!-- /widget-main -->
				</div><!-- /widget-body -->
				<div class="widget-body">
					<div class="widget-main no-padding">
                        <div class="stat-container">
				            <div class="stat-holder">						
					            <div class="stat">							
						            <span><a href="./M_ApplyRecharge">${countApplyRecharge }</a></span>							
						            充值申请
					            </div> <!-- /stat -->						
				            </div> <!-- /stat-holder -->
				            <div class="stat-holder">						
					            <div class="stat">							
						            <span><a href="./M_ApplyWithdraw">${countApplyWithdraw }</a></span>							
						           提现申请
					            </div> <!-- /stat -->						
				            </div> <!-- /stat-holder -->
				            <div class="stat-holder">						
					            <div class="stat">							
						            <span><a href="./M_NewsList">${countNews }</a></span>							
						           通知公告
					            </div> <!-- /stat -->						
				            </div> <!-- /stat-holder -->
				            <div class="stat-holder">						
					            <div class="stat">							
						            <span><a href="./M_AdminList">${countAdmin }</a></span>							
						          管理员
					            </div> <!-- /stat -->						
				            </div> <!-- /stat-holder -->
			            </div>
					</div><!-- /widget-main -->
				</div><!-- /widget-body -->
				</c:if>
				
				<c:if test="${1<8 }">
				<div class="row">
					<div class="space-6"></div>
					<div class="col-sm-6 infobox-container">
	
						<div class="infobox infobox-red infobox-small infobox-dark">
							<div class="infobox-icon">
								<i class="icon-credit-card"></i>
							</div>
							<div class="infobox-data">
								<div class="infobox-content">可用资金</div>
								<div class="infobox-content">
									<fmt:formatNumber value="100" type="currency" pattern="¥#,#00.00#"/>
								</div>
							</div>
						</div>
	
						<div class="infobox infobox-green infobox-small infobox-dark">
							<div class="infobox-icon">
								<i class="icon-gift"></i>
							</div>
							<div class="infobox-data">
								<div class="infobox-content">可用积分</div>
								<div class="infobox-content">
									<fmt:formatNumber value="100" type="currency" pattern="¥#,#00.00#"/>
								</div>
							</div>
						</div>
	
						<div class="infobox infobox-blue infobox-small infobox-dark">
							<div class="infobox-icon">
								<i class="icon-plane"></i>
							</div>
							<div class="infobox-data">
								<div class="infobox-content">可用基金</div>
								<div class="infobox-content">
									<fmt:formatNumber value="100" type="currency" pattern="¥#,#00.00#"/>
								</div>
							</div>
						</div>
						
						<div class="space-6"></div>
						<div class="infobox infobox-red">
							<div class="infobox-icon">
								<i class="icon-folder-close"></i>
							</div>
							<div class="infobox-data">
								<span class="infobox-data-number">
									<fmt:formatNumber value="100" type="currency" pattern="¥#,#00.00#"/>
								</span>
								<div class="infobox-content">投资金额</div>
							</div>
						</div>
						<div class="infobox infobox-green">
							<div class="infobox-icon">
								<i class="icon-folder-open"></i>
							</div>
							<div class="infobox-data">
								<span class="infobox-data-number">
									<fmt:formatNumber value="100" type="currency" pattern="¥#,#00.00#"/>
								</span>
								<div class="infobox-content">回本额度</div>
							</div>
						</div>
						<div class="space-6"></div>
						<div class="infobox infobox-blue">
							<div class="infobox-icon">
								<i class="icon-circle-arrow-left"></i>
							</div>
							<div class="infobox-data">
								<span class="infobox-data-number">
									<fmt:formatNumber value="100" type="currency" pattern="¥#,#00.00#"/>
								</span>
								<div class="infobox-content">大区业绩</div>
							</div>
						</div>
						<div class="infobox infobox-blue">
							<div class="infobox-icon">
								<i class="icon-circle-arrow-right"></i>
							</div>
							<div class="infobox-data">
								<span class="infobox-data-number">
									<fmt:formatNumber value="100" type="currency" pattern="¥#,#00.00#"/>
								</span>
								<div class="infobox-content">小区业绩</div>
							</div>
						</div>
						<div class="space-6"></div>
						<div class="infobox infobox-pink">
							<div class="infobox-icon">
								<i class="icon-globe"></i>
							</div>
							<div class="infobox-data">
								<span class="infobox-data-number">
									<fmt:formatNumber value="100" type="currency" pattern="¥#,#00.00#"/>
								</span>
								<div class="infobox-content">总业绩</div>
							</div>
						</div>
						<div class="infobox infobox-orange">
							<div class="infobox-icon">
								<i class="icon-globe"></i>
							</div>
							<div class="infobox-data">
								<span class="infobox-data-number">
									已经购买
								</span>
								<div class="infobox-content">会员等级</div>
							</div>
						</div>
						
					</div>
					<div class="vspace-sm"></div>
					
					<div class="col-sm-6">
						<div class="widget-box">
							<div class="widget-header widget-header-flat widget-header-small">
								<h5><i class="icon-road"></i>最近操作</h5>
							</div>
	
							<div class="widget-body">
								<div class="clearfix">
									<table class="no-margin table table-striped table-hover">
										<c:forEach items="${actionList }" var="vo" varStatus="k">
										<tr>
											<td class="center nowrap">${k.count }</td>
											<td class="center nowrap">${vo.action }</td>
											<td>
												<p style="margin:0;line-height: 20px;height:20px;overflow: hidden;">${vo.description }</p>
											</td>
											<td class="nowrap">
												<my:florid time="${vo.createdTime }" />
											</td>
										</tr>
										</c:forEach>
										<c:if test="${empty actionList }">
										<tr><td>暂无操作记录</td></tr>
										</c:if>
									</table>
								</div>
							</div><!-- /widget-body -->
						</div><!-- /widget-box -->
					</div>
				</div>
				<div class="row">
					<div class="vspace-sm"></div>
					<div class="col-xs-12">
						<div class="widget-box transparent">
							<div class="widget-header">
								<h4 class="lighter smaller">
									<i class="icon-rss orange"></i>
									最近变动记录
								</h4>
	
								<div class="widget-toolbar no-border">
									<ul class="nav nav-tabs" id="recent-tab">
										<li class="active">
											<a data-toggle="tab" href="#task-tab">资金</a>
										</li>
										<li>
											<a data-toggle="tab" href="#member-tab">积分</a>
										</li>
										<li>
											<a data-toggle="tab" href="#comment-tab">基金</a>
										</li>
									</ul>
								</div>
							</div>
	
							<div class="widget-body">
								<div class="widget-main padding-4">
									<div class="tab-content padding-0 overflow-visible">
										<div id="task-tab" class="tab-pane active">
											<table class="no-margin table table-striped table-hover">
												<c:forEach items="${moneyList }" var="vo" varStatus="k">
												<tr>
													<td class="center nowrap">${k.count }</td>
													<td class="center nowrap">
														<spring:message code="type.cuser_money.${vo.type }"/>
													</td>
													<td class="center nowrap ${vo.num<0?'money':'green' } bold">
														${vo.num }
													</td>
													<td class="hidden-xs">
														<p style="margin:0;line-height: 20px;height:20px;overflow: hidden;">${vo.description }</p>
													</td>
													<td class="right nowrap">
														<my:florid time="${vo.createdTime }" />
													</td>
												</tr>
												</c:forEach>
												<c:if test="${empty moneyList }">
												<tr><td>暂无资金变动记录</td></tr>
												</c:if>
											</table>
										</div>
	
										<div id="member-tab" class="tab-pane">
											<table class="no-margin table table-striped table-hover">
												<c:forEach items="${scoreList }" var="vo" varStatus="k">
												<tr>
													<td class="center nowrap">${k.count }</td>
													<td class="center nowrap">
														<spring:message code="type.cuser_score.${vo.type }"/>
													</td>
													<td class="center nowrap ${vo.num<0?'money':'green' } bold">
														${vo.num }
													</td>
													<td class="hidden-xs">
														<p style="margin:0;line-height: 20px;height:20px;overflow: hidden;">${vo.description }</p>
													</td>
													<td class="right nowrap">
														<my:florid time="${vo.createdTime }" />
													</td>
												</tr>
												</c:forEach>
												<c:if test="${empty scoreList }">
												<tr><td>暂无积分变动记录</td></tr>
												</c:if>
											</table>
										</div><!-- member-tab -->
	
										<div id="comment-tab" class="tab-pane">
											<table class="no-margin table table-striped table-hover">
												<c:forEach items="${fundList }" var="vo" varStatus="k">
												<tr>
													<td class="center nowrap">${k.count }</td>
													<td class="center nowrap">
														<spring:message code="type.cuser_fund.${vo.type }"/>
													</td>
													<td class="center nowrap ${vo.num<0?'money':'green' } bold">
														${vo.num }
													</td>
													<td class="hidden-xs">
														<p style="margin:0;line-height: 20px;height:20px;overflow: hidden;">${vo.description }</p>
													</td>
													<td class="right nowrap">
														<my:florid time="${vo.createdTime }" />
													</td>
												</tr>
												</c:forEach>
												<c:if test="${empty fundList }">
												<tr><td>暂无基金变动记录</td></tr>
												</c:if>
											</table>
										</div>
									</div>
								</div><!-- /widget-main -->
							</div><!-- /widget-body -->
						</div><!-- /widget-box -->
					</div>
				</div>
				<div class="space-6 clear"></div>
				</c:if>
				
				<c:if test="${not empty newsList }">
				<div class="widget-box transparent">
				<div class="widget-header widget-header-flat">
					<h4 class="lighter">
						<i class="icon icon-bullhorn blue"></i>
						近期公告
					</h4>
				</div>
				<div class="widget-body">
					<div class="widget-main no-padding">
		                <table class="table table-striped table-hover">
		                    <tbody>
		                    	<c:forEach items="${newsList }" var="vo" varStatus="k">
		                            <tr>
		                                <td class="center nowrap">
		                                <c:forEach begin="1" end="${newsTypeLength}" var="p">
		                                	<c:if test="${vo.type==p }">【<spring:message code="type.news.${p }"/>】</c:if>
		                                </c:forEach>
		                                </td>
		                                <td class="left">
		                                	<a href="./News?id=${vo.id }" target="_blank">
		                                		<span class="hlight">${vo.name }</span>
		                                	</a>
		                               	</td>
		                                <td class="center nowrap hidden-xs">浏览&nbsp;${vo.viewCount }&nbsp;次</td>
		                                <td class="nowrap" style="text-align: right !important">
		                                	<my:florid time="${vo.createdTime }"></my:florid>
		                                </td>
		                            </tr>
		                        </c:forEach>
		                    </tbody>
		                </table>
					</div>
				</div>
				</c:if>
			</div>
        <!-- 自定义内容区域 -->
		</div><!-- /.col -->
	</div><!-- /.row -->
	
	<jsp:include page="/WEB-INF/sitemesh-decorators/admin_bottom.jsp" />
</div>

<script>
$(function(){
	setInterval(function(){
		$('#nowtime').text((new Date()).format('yyyy-MM-dd hh:mm:ss'));
	}, 1000);
});
</script>
</body>
</html>